<template>
  <RouterView />
  <van-tabbar v-model="active">
    <van-tabbar-item icon="home-o" @click="router.push('/home')">首页</van-tabbar-item>
      <van-tabbar-item icon="home-o" @click="router.push('/course')">课程</van-tabbar-item>
       <van-tabbar-item icon="setting-o" @click="router.push('/online')">在线上课</van-tabbar-item>
    <van-tabbar-item icon="friends-o" @click="router.push('/found')">发现</van-tabbar-item>
    <van-tabbar-item icon="setting-o" @click="router.push('/my')">我的</van-tabbar-item>
  </van-tabbar>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { useRouter } from 'vue-router';
const router = useRouter();
const active = ref(0);
</script>

<style scoped></style>